import request from '@/utils/request'

// 查询出入库台账列表
export function listOut(query) {
  return request({
    url: '/system/out/list',
    method: 'get',
    params: query
  })
}

// 查询出入库台账详细
export function getOut(outId) {
  return request({
    url: '/system/out/' + outId,
    method: 'get'
  })
}

// 新增出入库台账
export function addOut(data) {
  return request({
    url: '/system/out',
    method: 'post',
    data: data
  })
}

// 修改出入库台账
export function updateOut(data) {
  return request({
    url: '/system/out',
    method: 'put',
    data: data
  })
}

// 删除出入库台账
export function delOut(outId) {
  return request({
    url: '/system/out/' + outId,
    method: 'delete'
  })
}
